package com.jy.api.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by hanxi on 2017/11/14.
 */
@Entity
@Data
@NoArgsConstructor
public class KitchenPrintConfig {
    @Id
    @Column(length = 50)
    private String id;
    /**
     * ip地址
     */
    @Column(nullable = false)
    private String ip;
    /**
     * 端口号
     */
    @Column(nullable = false)
    private int port = 9100;
    /**
     * 是否启用
     */
    @Column(nullable = false)
    private boolean enabled = true;
    /**
     * 店铺id
     */
    @Column(nullable = false)
    private String storeId;

    @Column(insertable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date addTime;
    @Column(insertable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

}
